/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sync.model;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author yarden
 */
public class UserInfo {
    private String username;    
    private String lastSync = "";
    private boolean newUser = true;
    
    List<Assignment> assignments = new ArrayList<Assignment>();
    
    public UserInfo() {
    }
    
    public String getUsername() {
        return username;
    } 
    
    public void setUsername(String name) {
        this.username = name;
    }
    
    public String getLastSync() {
        return lastSync;
    }
    
    public void setLastSync(String date) {
        this.lastSync = date;
        newUser = false;
    }
    
    public List<Assignment> getAssignments() {
        return assignments;
    }
    
    public void setAssignments(List<Assignment> list) {
        this.assignments = list;
        newUser = false;
    }
    
    public boolean isNewUser() {
        return newUser;
    }
    
}
